package com.TestDemo;

import java.util.Arrays;
import java.util.List;

public class test04 {

    public static void main(String[] args) {
        String str = "zhangjzm";

        System.out.println("test:substring----" + str.substring(0,5));


        int[]   arr = new int[]{1,2,3,5,6,4};

        String s = Arrays.toString(arr);
        System.out.println(s);
        System.out.println(s.length());
        System.out.println(s.indexOf(','));


        String[]   sarr = new String[]{"hello","boy","zjz","cool","boy"};
        Arrays.sort(sarr);
        List<String> strings = Arrays.asList(sarr);
        System.out.println("list:");
        System.out.println(strings);
//        strings.add("sss");


        System.out.println(strings.isEmpty());
        System.out.println(strings.get(2));
        System.out.println(strings.size());


        System.out.println(Arrays.toString(sarr));
//        Arrays.toString();



      /*  for(Object o:arr){
            System.out.print(o);
        }*/

        System.out.println(str  + str.length());
    }
}
